package com.anyou.use.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.anyou.common.annotation.Excel;
import com.anyou.common.core.domain.BaseEntity;

/**
 * 用户收货地址对象 use_user_address
 * 
 * @author gaochaohao
 * @date 2022-03-08
 */
public class UseUserAddress extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 地址id */
    private Long addressId;

    /** 用户编号 */
    private Long userId;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String userName;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phoneNumber;

    /** 省 */
    @Excel(name = "省")
    private String province;

    /** 市 */
    @Excel(name = "市")
    private String city;

    /** 区 */
    @Excel(name = "区")
    private String area;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String detailed;

    /** 是否默认地址（0否，1=是） */
    @Excel(name = "是否默认地址", readConverterExp = "0=否，1=是")
    private String isDefault;

    public void setAddressId(Long addressId) 
    {
        this.addressId = addressId;
    }

    public Long getAddressId() 
    {
        return addressId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setPhoneNumber(String phoneNumber) 
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() 
    {
        return phoneNumber;
    }
    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }
    public void setArea(String area) 
    {
        this.area = area;
    }

    public String getArea() 
    {
        return area;
    }
    public void setDetailed(String detailed) 
    {
        this.detailed = detailed;
    }

    public String getDetailed() 
    {
        return detailed;
    }
    public void setIsDefault(String isDefault) 
    {
        this.isDefault = isDefault;
    }

    public String getIsDefault() 
    {
        return isDefault;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("addressId", getAddressId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("phoneNumber", getPhoneNumber())
            .append("province", getProvince())
            .append("city", getCity())
            .append("area", getArea())
            .append("detailed", getDetailed())
            .append("isDefault", getIsDefault())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
